/* 
 * File:   Driver.h
 * Author: dell
 *
 * Created on May 29, 2013, 5:48 PM
 */

#ifndef DRIVER_H
#define	DRIVER_H

#include "GroceryFileSystem.h"

class Driver{
public:
    Driver(){
        continueFlag = true;
        while(continueFlag){
            FoodGroup * temp = new FoodGroup;
            GroceryFileSystem * current = new GroceryFileSystem(*temp);
            SetContinueFlag();
        }
    }
    bool GetContinueFlag();
private:
    void SetContinueFlag();
    bool continueFlag;
};

void Driver::SetContinueFlag(){
    int temp = 2;
    while(temp>1){
        cout<<"Enter 1 to continue, otherwise enter 0"<<endl<<temp<<endl;
        cin>>temp; 
    }
    continueFlag = temp;
}

bool Driver::GetContinueFlag(){
    return continueFlag;
}

#endif	/* DRIVER_H */

